package com.fhz.kotlinmvvm.broadcast

import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import com.fhz.kotlinmvvm.con.BROADCAST_ACTION

class MyReceiver3 : BroadcastReceiver() {

    override fun onReceive(context: Context, intent: Intent) {
        val action = intent.action
        if (action.equals(BROADCAST_ACTION)){
            val bundle = intent.extras
            val string = bundle?.getString("title")
            println(123)
            println(string)
        }
    }
}